package org.jeecg.modules.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.modules.system.entity.SysUser;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.util.Date;

@Data
@Accessors(chain = true)
public class SysUserVo extends SysUser {

    /**学生编号*/
    @ApiModelProperty(value = "学号")
    @Transient
    private String stdNo;
    /**姓名*/
    @ApiModelProperty(value = "姓名")
    @Transient
    private String name;
    /**学院*/
    @ApiModelProperty(value = "学院")
    @Transient
    private String college;
    /**专业*/
    @ApiModelProperty(value = "专业")
    @Transient
    private String major;
    /**年级*/
    @ApiModelProperty(value = "年级")
    @Transient
    private String grade;
    /**班级*/
    @ApiModelProperty(value = "班级")
    @Transient
    private String clazz;
    //多个用逗号分隔
    private String id;
    //多个用逗号分隔
    private String username;

    /**入学时间*/
    @ApiModelProperty(value = "入学时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Transient
    private Date entranceTime;

    /**
     * 任职开始时间
     */
    @Transient
    private Date postBeginTime;
    /**
     * 任职结束时间
     */
    @Transient
    private Date postEndTime;
}